#---------------------------------------------------------------------
#
#---------------------------------------------------------------------

QT -= gui
CONFIG += console
CONFIG += c++11

TEMPLATE = app
DESTDIR  = ../bin
UI_DIR  = build
RCC_DIR = build
CONFIG(debug, debug|release) {
    TARGET      = version_hg_d
    OBJECTS_DIR = build/debug
    MOC_DIR     = build/debug
}
else {
    TARGET      = version_hg
    OBJECTS_DIR = build/release
    MOC_DIR     = build/release
}


SOURCES += \
    src/main.cpp\
    src/hg.cpp\
    src/utils.cpp


HEADERS += \
    src/hg.hpp\
    src/utils.hpp



# ----------------Добавляем версии---------------------
#MAJOR = 0
#MINOR = 0
#VERSION_HEADER = ./src/version.hpp

#versiontarget.target = $$VERSION_HEADER
#versiontarget.commands = d:/projects/version/bin/version.exe $$MAJOR $$MINOR $$VERSION_HEADER
#versiontarget.depends = FORCE

#PRE_TARGETDEPS += $$VERSION_HEADER
#QMAKE_EXTRA_TARGETS += versiontarget
# ---------------Добавили версии-----------------------




